package com.ccrfid.rmc6.entity.business.prison.patrolcheck;

import com.vividsolutions.jts.geom.Point;
import org.hibernate.annotations.Type;

import javax.persistence.*;

@Entity
@Table(name = "patrol_check_point_position")
public class PatrolCheckPointPositionEntity {
    private Long checkPointId;
    private Integer floorNumber;
    private Point position;

    @Id
    @Column(name = "check_point_id", nullable = false)
    public Long getCheckPointId() {
        return checkPointId;
    }

    public void setCheckPointId(Long checkPointId) {
        this.checkPointId = checkPointId;
    }

    @Basic
    @Column(name = "floor_number", nullable = false)
    public Integer getFloorNumber() {
        return floorNumber;
    }

    public void setFloorNumber(Integer floorNumber) {
        this.floorNumber = floorNumber;
    }

    @Basic
    @Column(name = "position", nullable = false)
    @Type(type = "jts_geometry")
    public Point getPosition() {
        return position;
    }

    public void setPosition(Point position) {
        this.position = position;
    }
}
